package com.techysky.xsd.dm;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;



@XmlType(name = "linkShowAttType")
@XmlEnum
public enum LinkShowAttType {

    @XmlEnumValue("newPane")
    NEW_PANE("newPane"),
    @XmlEnumValue("embedInContext")
    EMBED_IN_CONTEXT("embedInContext"),
    @XmlEnumValue("replaceAndReturnToSource")
    REPLACE_AND_RETURN_TO_SOURCE("replaceAndReturnToSource"),
    @XmlEnumValue("replaceAndNoReturn")
    REPLACE_AND_NO_RETURN("replaceAndNoReturn");
    private final String value;

    LinkShowAttType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static LinkShowAttType fromValue(String v) {
        for (LinkShowAttType c: LinkShowAttType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
